import request from '@/config/axios'

// 获取公告列表
export const getnoticelistApi = (params:any) => {
  return request.get({ url: '/api/system/notice/list',params})
}
// 新增公告类型
export const addNoticeApi = (data:any) => {
  return request.post({ url: '/api/system/notice',data:data})
}
// 修改公告类型
export const editNoticeApi = (data:any) => {
  return request.put({ url: '/api/system/notice',data:data})
}
// 删除公告类型
export const deteleNoticeApi = (id:any) => {
  return request.delete({ url: `/api/system/notice/${id}`})
}